<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.js"></script>
</head>
<body>
<div id="app">
    <button @click="type=1">1</button>
    <button @click="type=2">2</button>
    <button @click="type=3">3</button>
        <p v-show="isShow">地爆天星</p>
        <h2 v-show="type===1">12</h2>
        <h2 v-show="type===2">123</h2>
        <h2 v-show="type===3">1234</h2>
</div>
<script>
    const vm = new Vue({
        el:"#app",
        data(){
            return{
                isShow:true,
                type:1,
            }
        },
    })
</script>
</body>
</html>